package com.czr.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czr.dao.entity.CzrUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 */
@Mapper
public interface CzrUserMapper extends BaseMapper<CzrUser> {
    Map<String,Object> getLogin(@Param("username") String username, @Param("password") String password);
    Map<String,Object> getUserInfo(@Param("userId") Long userId);

    Map<String,Object> getUserName(@Param("username") String username);

    Map<String,Object> getWxLogin(@Param("openId") String openId);

    CzrUser getInfoUUID(@Param("uuid") String uuid);

    Map<String,Object> getPhone(@Param("phone") String phone);

    Map<String,Object> getLoginPhone(@Param("phone") String phone, @Param("password") String password);

    Map<String,Object> getLoginAdmin(@Param("username") String username, @Param("password") String password);

    Map<String,Object> getLoginPhoneAdmin(@Param("phone") String phone, @Param("password") String password);
}
